home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / unarced / graphics / amigajpeg-2 / readme < prev    next >
Text File  |  1995-03-17  |  15KB  |  304 lines

  1. The Independent JPEG Group's JPEG software
  2. ==========================================
  3.  
  4. README for release 2 of 13-Dec-91
  5. =================================
  6.  
  7. This distribution contains the second public release of the Independent JPEG
  8. Group's free JPEG software.  You are welcome to redistribute this software and
  9. to use it for any purpose, subject to the conditions under LEGAL ISSUES, below.
  10.  
  11. For installation instructions, see file SETUP; for usage instructions, see
  12. file USAGE (or the cjpeg.1 and djpeg.1 manual pages).
  13.  
  14. This software is still undergoing revision.  Updated versions may be obtained
  15. by FTP or UUCP to uunet.uu.net and other archive sites; see ARCHIVE LOCATIONS
  16. below for details.
  17.  
  18. If you intend to become a serious user of this software, please contact
  19. jpeg-info@uunet.uu.net to be added to our electronic mailing list.  Then
  20. you'll be notified of updates and have a chance to participate in discussions,
  21. etc.
  22.  
  23. This software is the work of Tom Lane, Philip Gladstone, Luis Ortiz,
  24. Lee Crocker, and other members of the Independent JPEG Group.
  25.  
  26.  
  27. DISCLAIMER
  28. ==========
  29.  
  30. THIS SOFTWARE IS NOT COMPLETE NOR FULLY DEBUGGED.  It is not guaranteed to be
  31. useful for anything, nor to be compatible with subsequent releases, nor to be
  32. an accurate implementation of the JPEG standard.  (See LEGAL ISSUES for even
  33. more disclaimers.)
  34.  
  35. Please report any problems with this software to jpeg-info@uunet.uu.net.
  36.  
  37.  
  38. WHAT'S HERE
  39. ===========
  40.  
  41. This distribution contains software to implement JPEG image compression and
  42. decompression.  JPEG (pronounced "jay-peg") is a standardized compression
  43. method for full-color and gray-scale images.  JPEG is intended for
  44. "real-world" scenes; cartoons and other non-realistic images are not its
  45. strong suit.  JPEG is lossy, meaning that the output image is not necessarily
  46. identical to the input image.  Hence you should not use JPEG if you have to
  47. have identical output bits.  However, on typical images of real-world scenes,
  48. very good compression levels can be obtained with no visible change, and
  49. amazingly high compression levels can be obtained if you can tolerate a
  50. low-quality image.  For more details, see the references, or just experiment
  51. with various compression settings.
  52.  
  53. The software implements JPEG baseline and extended-sequential compression
  54. processes.  Provision is made for supporting all variants of these processes,
  55. although some uncommon parameter settings aren't implemented yet.  For legal
  56. reasons, we are not distributing code for the arithmetic-coding process; see
  57. LEGAL ISSUES.  At present we have made no provision for supporting the
  58. progressive or lossless processes defined in the standard.
  59.  
  60. The present software is still largely in the prototype stage.  It does not
  61. support all possible variants of the JPEG standard, and some functions have
  62. rather slow and/or crude implementations.  However, it is useful already.
  63.  
  64. The emphasis in designing this software has been on achieving portability and
  65. flexibility, while also making it fast enough to be useful.  We have not yet
  66. undertaken serious performance measurement or tuning; we intend to do so in
  67. the future.
  68.  
  69.  
  70. This software can be used on several levels:
  71.  
  72. * As canned software for JPEG compression and decompression.  Just edit the
  73.   Makefile and configuration files as needed (see file SETUP), compile and go.
  74.   Members of the independent JPEG group will improve the out-of-the-box
  75.   functionality and speed as time goes on.
  76.  
  77. * As the basis for other JPEG programs.  For example, you could incorporate
  78.   the decompressor into a general image viewing package by replacing the
  79.   output module with write-to-screen functions.  For an implementation on
  80.   specific hardware, you might want to replace some of the inner loops with
  81.   assembly code.  For a non-command-line-driven system, you might want a
  82.   different user interface.  (Members of the group will be producing Macintosh
  83.   and Amiga versions with more appropriate user interfaces, for example.)
  84.  
  85. * As a toolkit for experimentation with JPEG and JPEG-like algorithms.  Most
  86.   of the individual decisions you might want to mess with are packaged up into
  87.   separate modules.  For example, the details of color-space conversion and
  88.   subsampling techniques are each localized in one compressor and one
  89.   decompressor module.  You'd probably also want to extend the user interface
  90.   to give you more detailed control over the JPEG compression parameters.
  91.  
  92. In particular, we welcome the use of this software as the basis for commercial
  93. products; no royalty is required.
  94.  
  95.  
  96. ARCHIVE LOCATIONS
  97. =================
  98.  
  99. The "official" archive site for this software is uunet.uu.net (Internet
  100. address 137.39.1.2 or 192.48.96.2).  The most recent released version can
  101. always be found there in directory graphics/jpeg.  This particular version
  102. will be archived as jpegsrc.v2.tar.Z.  If you are on the Internet, you can
  103. retrieve files from UUNET by anonymous FTP.  If you don't have FTP access,
  104. UUNET's archives are also available via UUCP; contact postmaster@uunet.uu.net
  105. for information on retrieving files that way.
  106.  
  107. Various other Internet sites maintain copies of the UUNET file, which may or
  108. may not be up-to-date.  In Europe, try nic.funet.fi (128.214.6.100; look in
  109. directory pub/graphics/programs/jpeg).
  110.  
  111. You can also obtain this software from CompuServe, in the GRAPHSUPPORT forum
  112. (GO PICS), library 10; this version will be file jpsrc2.zip.
  113.  
  114. If you are not reasonably handy at configuring and installing portable C
  115. programs, you may have some difficulty installing this package.  You may
  116. prefer to obtain a pre-built executable version.  A collection of pre-built
  117. executables for various machines is currently available for anonymous FTP at
  118. procyon.cis.ksu.edu (129.130.10.80 --- this number is due to change soon);
  119. look under /pub/JPEG.  The administrators of this system ask that FTP traffic
  120. be limited to non-prime hours.  For more information on this archive, please
  121. contact Steve Davis (strat@cis.ksu.edu).  This collection is not maintained by
  122. the Independent JPEG Group, and programs in it may not be the latest version.
  123.  
  124.  
  125. SUPPORTING SOFTWARE
  126. ===================
  127.  
  128. You will probably want Jef Poskanzer's PBMPLUS image software, which provides
  129. many useful operations on PPM-format image files.  In particular, it can
  130. convert PPM images to and from a wide range of other formats.  You can FTP
  131. this free software from export.lcs.mit.edu (contrib/pbmplus*.tar.Z) or
  132. ftp.ee.lbl.gov (pbmplus*.tar.Z).  Unfortunately PBMPLUS is not nearly as
  133. portable as the JPEG software is; you are likely to have difficulty making it
  134. work on any non-Unix machine.
  135.  
  136. If you are using X Windows you might want to use the xv or xloadimage viewers
  137. to save yourself the trouble of converting PPM to some other format.  Both of
  138. these can be found in the contrib directory at export.lcs.mit.edu.
  139. There will soon be a new release of xv that incorporates our software and thus
  140. can read and write JPEG files directly.  (NOTE: since xv internally reduces
  141. all images to 8 bits/pixel, a JPEG file written by xv will not be very high
  142. quality.  Caveat user.)
  143.  
  144.  
  145. SOFTWARE THAT'S NO HELP AT ALL
  146. ==============================
  147.  
  148. Handmade Software's shareware PC program GIF2JPG produces files that are
  149. totally incompatible with our programs.  They use a proprietary format that is
  150. an amalgam of GIF and JPEG representations.  However, you can force GIF2JPG
  151. to produce compatible files with its -j switch, and their decompression
  152. program JPG2GIF can read our files (at least ones produced with our default
  153. option settings).
  154.  
  155. Unfortunately, most commercial JPEG implementations are also incompatible as
  156. of this writing, especially programs released before summer 1991.  The root of
  157. the problem is that the ISO JPEG committee failed to specify a concrete file
  158. format.  Many vendors "filled in the blanks" on their own, creating
  159. proprietary formats that no one else could read.  (For example, none of the
  160. early commercial JPEG implementations for the Macintosh were able to exchange
  161. compressed files.)
  162.  
  163. The file format we have adopted is called JFIF (see REFERENCES).  This format
  164. has been agreed to by a number of major commercial JPEG vendors, and we expect
  165. that it will become the de facto standard.  JFIF is a minimal representation;
  166. work is also going forward to incorporate JPEG compression into the TIFF
  167. standard, for use in "high end" applications that need to record a lot of
  168. additional data about an image.  We intend to support JPEG-in-TIFF in the
  169. future.  We hope that these two formats will be sufficient and that other,
  170. incompatible JPEG file formats will not proliferate.
  171.  
  172. Indeed, part of the reason for developing and releasing this free software is
  173. to help force rapid convergence to de facto standards for JPEG file formats.
  174. SUPPORT STANDARD, NON-PROPRIETARY FORMATS: demand JFIF or JPEG-in-TIFF!
  175.  
  176.  
  177. REFERENCES
  178. ==========
  179.  
  180. The best and most readily available introduction to the JPEG compression
  181. algorithm is Wallace's article in the April '91 CACM:
  182.     Wallace, Gregory K.  "The JPEG Still Picture Compression Standard",
  183.     Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44.
  184. (Adjacent articles in that issue discuss MPEG motion picture compression,
  185. applications of JPEG, and related topics.)  We highly recommend reading that
  186. article before trying to understand the innards of any JPEG software.
  187.  
  188. For more detail about the JPEG standard you pretty much have to go to the
  189. draft standard (which is not nearly as intelligible as Wallace's article).
  190. The standard is not now available electronically; you must order a paper copy
  191. through ISO.  In the US, copies may be ordered from ANSI Sales at (212)
  192. 642-4900.  The standard is divided into two parts: Part 1 is the actual
  193. specification, and Part 2 covers compliance testing methods.  The current
  194. "committee draft" version of Part 1 is titled "Digital Compression and Coding
  195. of Continuous-tone Still Images, Part 1: Requirements and guidelines" and has
  196. document number ISO/IEC CD 10918-1.  (The alternate number SC2 N2215 should
  197. also be mentioned when ordering.)  This draft is expected to be superseded by
  198. the Draft International Standard version around the end of November 1991.
  199. Ordering info will be the same as above, but replace "CD" with "DIS" in the
  200. document number (alternate number not yet known).  The committee draft of
  201. Part 2 is expected to be available around the end of December 1991.  It will
  202. be titled "Digital Compression and Coding of Continuous-tone Still Images,
  203. Part 2: Compliance testing" and will have document number ISO/IEC CD 10918-2
  204. (alternate number not yet known).
  205.  
  206. The JPEG standard does not specify all details of an interchangeable file
  207. format.  For the omitted details we follow the "JFIF" conventions, revision
  208. 1.01.  A copy of the JFIF spec is available from:
  209.     Literature Department
  210.     C-Cube Microsystems, Inc.
  211.     399A West Trimble Road
  212.     San Jose, CA  95131
  213.     (408) 944-6300
  214. Requests can also be e-mailed to info@c3.pla.ca.us.  The same source can
  215. supply copies of the draft JPEG-in-TIFF specs.
  216.  
  217. If you want to understand this implementation, start by reading the
  218. "architecture" documentation file.  Please read "codingrules" if you want to
  219. contribute any code.
  220.  
  221.  
  222. LEGAL ISSUES
  223. ============
  224.  
  225. The authors make NO WARRANTY or representation, either express or implied,
  226. with respect to this software, its quality, accuracy, merchantability, or
  227. fitness for a particular purpose.  This software is provided "AS IS", and you,
  228. its user, assume the entire risk as to its quality and accuracy.
  229.  
  230. This software is copyright (C) 1991, Thomas G. Lane.
  231. All Rights Reserved except as specified below.
  232.  
  233. Permission is hereby granted to use, copy, modify, and distribute this
  234. software (or portions thereof) for any purpose, without fee, subject to these
  235. conditions:
  236. (1) If any part of the source code for this software is distributed, then this
  237. README file must be included, with this copyright and no-warranty notice
  238. unaltered; and any additions, deletions, or changes to the original files
  239. must be clearly indicated in accompanying documentation.
  240. (2) If only executable code is distributed, then the accompanying
  241. documentation must state that "this software is based in part on the work of
  242. the Independent JPEG Group".
  243. (3) Permission for use of this software is granted only if the user accepts
  244. full responsibility for any undesirable consequences; the authors accept
  245. NO LIABILITY for damages of any kind.
  246.  
  247. Permission is NOT granted for the use of any author's name or author's company
  248. name in advertising or publicity relating to this software or products derived
  249. from it.  This software may be referred to only as "the Independent JPEG
  250. Group's software".
  251.  
  252. We specifically permit and encourage the use of this software as the basis of
  253. commercial products, provided that all warranty or liability claims are
  254. assumed by the product vendor.
  255.  
  256.  
  257. ansi2knr.c is included in this distribution by permission of L. Peter Deutsch,
  258. sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
  259. ansi2knr.c is NOT covered by the above copyright and conditions, but instead
  260. by the usual distribution terms of the Free Software Foundation; principally,
  261. that you must include source code if you redistribute it.  (See the file
  262. ansi2knr.c for full details.)  However, since ansi2knr.c is not needed as part
  263. of any product generated from the JPEG code, this does not limit you more than
  264. the foregoing paragraphs do.
  265.  
  266.  
  267. It appears that the arithmetic coding option of the JPEG spec is covered by
  268. patents owned by IBM and AT&T, as well as a pending Japanese patent of
  269. Mitsubishi.  Hence arithmetic coding cannot legally be used without obtaining
  270. one or more licenses.  For this reason, support for arithmetic coding has been
  271. removed from the free JPEG software.  (Since arithmetic coding provides only a
  272. marginal gain over the unpatented Huffman mode, it is unlikely that very many
  273. people will choose to use it.  If you do obtain the necessary licenses,
  274. contact jpeg-info@uunet.uu.net for a copy of our arithmetic coding modules.)
  275. So far as we are aware, there are no patent restrictions on the remaining
  276. code.
  277.  
  278.  
  279. We are required to state that
  280.     "The Graphics Interchange Format(c) is the Copyright property of
  281.     CompuServe Incorporated.  GIF(sm) is a Service Mark property of
  282.     CompuServe Incorporated."
  283.  
  284.  
  285. TO DO
  286. =====
  287.  
  288. Many of the modules need fleshing out to provide more complete
  289. implementations, or to provide faster paths for common cases.  The greatest
  290. needs are for (a) decent color quantization, and (b) a memory manager
  291. implementation that can work in limited memory by swapping "big" images to
  292. temporary files.  I (Tom Lane) am going to work on color quantization next.
  293. Volunteers to write a PC memory manager, or to work on any other modules, are
  294. welcome.
  295.  
  296. We'd appreciate it if people would compile and check out the code on as wide a
  297. variety of systems as possible, and report any portability problems
  298. encountered (with solutions, if possible).  Checks of file compatibility with
  299. other JPEG implementations would also be of interest.  Finally, we would
  300. appreciate code profiles showing where the most time is spent, especially on
  301. unusual systems.
  302.  
  303. Please send bug reports, offers of help, etc. to jpeg-info@uunet.uu.net.
  304.